
import {
	post,
	get,
	put
} from '@/utils/request.js'

/**
 * 预提现
 */
export const withdrawalPre = (data) => {
	return get(`/withdrawal/pre`,data)
}
/**
 * 银行卡信息
 */
export const bankCard = (data) => {
	return get(`/user/bankCard`,data)
}
/**
 * 修改银行卡信息
 */
export const updateBankCard = (data) => {
	return put(`/user/bankCard`,data)
}
/**
 * 提现记录
 */
export const withdrawalPage = (data) => {
	return get(`/withdrawal/page`,data)
}
// 资金明细
export const merchantAmtBillList = (data) => {
	return get(`/merchantAmtBill/list`,data)
}
// 金额不足商户
export const getSubsidyNoEnough = (data) => {
	return get(`/withdrawal/getSubsidyNoEnough`,data)
}

/**
 * 申请商户本金提现
 */
export const balanceAmtApply = (data) => {
	return post(`/withdrawal/balanceAmtApply`,data)
}
/**
 * 申请商户补贴提现
 */
export const subsidyApply = (data) => {
	return post(`/withdrawal/subsidyApplyV2`,data)
}

/**
 * 商户本金提现预览页
 */
export const balanceAmtPre = (data) => {
	return get(`/withdrawal/balanceAmtPre`,data)
}

/**
 * 商户补贴结算单列表
 */
export const subsidyMonthSettleList = (data) => {
	return get(`/withdrawal/subsidyMonthSettleList`,data)
}

/**
 * 提现核算单确认
 */
export const checkBillConfirm = (data) => {
	return post(`/withdrawal/checkBillConfirm`,data)
}